//
//  DDuploadNetWorkEngine.m
//  hnGovernment
//
//  Created by zhn on 2017/3/14.
//  Copyright © 2017年 安仔. All rights reserved.
//

#import "DDuploadNetWorkEngine.h"

@implementation DDuploadNetWorkEngine
+ (instancetype)uploadengineWithImage:(UIImage *)image baseUrl:(NSString *)baseUrl requestUrl:(NSString *)requestUrl progress:(DDuploadProgressBlock)progress success:(DDuploadSuccessBlcok)success failure:(failureBlock)failure {
    DDuploadNetWorkEngine *engine = [[DDuploadNetWorkEngine alloc]init];
    engine.baseURL = baseUrl;
    engine.success = success;
    engine.failure = failure;
    engine.uploadImage = image;
    engine.requestURL = requestUrl;
    engine.uploadprogress = progress;
    return engine;
}
@end
